package com.struts.model.driver.action;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.struts.model.driver.pojo.Person;

public class ModelDriverAction extends ActionSupport implements ModelDriven<Person>{
	
	private Person modle = new Person() ;

	public String testModelDriver() {
		System.out.println(this.getModel().getUsername());
		System.out.println(this.getModel().getPassword());
		System.out.println(this.getModel().getPhone());
		return SUCCESS ;
	}

	public Person getModel() {
		return this.modle ;
	}

}
